package com.hxzy.research.service.pageandmanager.impl;

import com.hxzy.research.mapper.TblUserMapper;
import com.hxzy.research.pojo.TblUser;
import com.hxzy.research.service.pageandmanager.AdminUserLogin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AdminUserLoginImpl implements AdminUserLogin {
    @Autowired private TblUserMapper tblUserMapper;
    @Override
    public List<TblUser> findUserList() throws Exception {
        return tblUserMapper.selectUserList();
    }

    @Override
    public TblUser findUserByName(String username) throws Exception {
        return tblUserMapper.selectUserByName(username);
    }
}
